
from django.template.defaultfilters import stringfilter
from django import template
from gtfs.models import seconds_to_time

register = template.Library()

@register.filter(name="s2t")
@stringfilter
def lower(value):
    return seconds_to_time(int(value))
